<?php
declare(strict_types=1);
/**
 * Created by project.
 * User: huanzipap
 * Date: 2023/5/11
 * Time: 15:01
 */

namespace App\Model;

use Hyperf\Database\Model\Model;
use Hyperf\Database\Model\SoftDeletes;

class ActAnswerQuestion extends Model
{
    use SoftDeletes;
    protected ?string $table='act_answer_question';
    public bool $timestamps = false;

    protected array $fillable = [
        'party_id','act_id','type','question_title','true_answer_xuan','score','status','admin_id'
    ];

    public function answers(): \Hyperf\Database\Model\Relations\HasMany
    {
        return $this->hasMany(ActAnswerAnswer::class, 'question_id', 'id');
    }

}